.top-bar {
    height: 40px;
    line-height: 40px;
    background-color: #333;
}

.top-bar .container {
    /* 设置了flex布局之后，容器里面的项目是水平排列的 */
    display: flex;
    /* 两端对齐，之间间隔均匀分布 */
    justify-content: space-between;
}

.top-bar > .container > .left-nav {
    /* 要左边的ul标签转成flex布局，这个时候下面的li就会水平排列  */
    display: flex;
}

.top-bar > .container > .left-nav > li > a {
    color: #b0b0b0;
    font-size: 12px;
    padding: 0 8px;
    border-right: 1px solid #424242;
}

.top-bar > .container > .left-nav > li:first-child > a {
    /* 第一个li的左内边距我们不要加 */
    padding-left: 0;
}

.top-bar > .container > .left-nav > li:last-child > a {
    padding-right: 0;
    border: none;
}

.top-bar > .container > .left-nav > li > a:hover {
    color: #fff;
}

/* 右边导航栏 */
.top-bar .right-nav {
    display: flex;
}

.top-bar .right-nav > li > a {
    padding: 0 8px;
    color: #b0b0b0;
    font-size: 12px;
}

.top-bar .right-nav > li:nth-child(1) > a,
.top-bar .right-nav > li:nth-child(2) > a {
    border-right: 1px solid #424242;
}


.top-bar .right-nav > li.shop-cart a {
    display: block;
    width: 120px;
    height: 40px;
    background-color: #424242;
    text-align: center;
}

.top-bar .right-nav > li.shop-cart a:hover {
    background-color: #fff;
    color: #ff6700;
}

.top-bar .right-nav > li.shop-cart .shop-details{
    position: absolute;
    z-index: 2;
    top: 40px;
    right: 0;
    width: 316px;
    /*height: 100px;*/
    height: 0;
    overflow: hidden;
    background-color: #fff;
    /*border: 1px solid red;*/
    box-shadow: 0 0 3px #cccccc;
    text-align: center;
    line-height: 100px;
    font-size: 12px;
}

.top-bar .right-nav > li.shop-cart:hover .shop-details{
    height: 100px;
}

.download{
    position: absolute;
    z-index: 2;
    overflow: hidden;
    top: 40px;
    left: -28px;

    width: 126px;
    height: 0;
    background-color: #fff;
    box-shadow: 0 0 3px #cccccc;
    text-align: center;
    font-size: 14px;
}

.download img{
    display: block;
    width: 90px;
    height: 90px;
    margin: 20px auto  0;
}

.top-bar .left-nav > li.pos-r:hover .download{
    height: 150px;
}

.top-bar .left-nav > li.pos-r:after{
    content: "";
    position: absolute;
    top: 20px;
    left: 23px;
    opacity: 0;

    border: 10px solid transparent;
    border-bottom-color: #ffff;
}

.top-bar .left-nav > li.pos-r:hover:after{
    opacity: 1;
}
